package model

import "time"

// DamRedVo 防红表查询结果
type DamRedVo struct {
	Id         int       `json:"id" db:"id"`
	Domain     string    `json:"domain" db:"domain"`
	Target     string    `json:"target" db:"target"`
	Sld        string    `json:"sld" db:"sld"`
	Param      int       `json:"param" db:"param"`
	Model      int       `json:"model" db:"model"`
	LinkType   int       `json:"link_type" db:"link_type"`
	Platform   string    `json:"platform" db:"platform"`
	State      int       `json:"state" db:"state"`
	Expire     int       `json:"expire" db:"expire"`
	Deleted    int       `json:"deleted" db:"deleted"`
	CreateTime time.Time `json:"create_time" db:"create_time"`
}

// DamRedForm 查询对象
type DamRedForm struct {
	Id      int    `json:"id" db:"id"`
	Sld     string `json:"sld" db:"sld"`
	State   int    `json:"state" db:"state"`
	Deleted int    `json:"deleted" db:"deleted"`
}

// DomainIpMap 查询对象
type DamDomainIpModel struct {
	ID         int       `json:"id" db:"id"`
	Domain     string    `json:"domain" db:"domain"`
	State      int       `json:"state" db:"state"`
	CreateTime time.Time `json:"create_time" db:"create_time"`
	AdminPhone string    `json:"admin_phone" db:"admin_phone"`
	Ip         string    `json:"ip" db:"ip"`
	UpdateTime time.Time `json:"update_time" db:"update_time"`
}

func (DamRedVo) TableName() string {
	return "wx_dam_red"
}
